home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_08_05 / 8n05078b < prev    next >
Text File  |  1990-04-17  |  224b  |  14 lines

  1.  
  2. Listing 12:
  3. 1B.    main()
  4. 2B.    {
  5. 3B.        int counter = 0;
  6. 4B.        while (counter < 1000){
  7. 5B.            if (dowork() > 1000)
  8. 6B.                break;
  9. 7B.            printf("Number of loops: %d\n", counter++);
  10. 8B.        }
  11. 9B.        printf("Done!\n");
  12. 10B.    }
  13.  
  14.